{php $duoquans = \Phpcmf\Service::M()->db->table('1_quan_shezhi')->where('dirname', 'quan')->get()->getRowArray();}
{php $duoquan = dr_string2array($duoquans['setting']);}
{php $quanliulan = $duoquan['pages']['quan_liulan'];}
{php $quantupianlist = $duoquan['pages']['quan_tupian_list'];}
{php $qiniusuolietu = $duoquan['pages']['quan_qiniutuhouzhui'];}
{php $alisuolietu = $duoquan['pages']['quan_alituhouzhui'];}
{php $quangetu = $duoquan['pages']['quan_getu'];}
{php $tengxunsuolietu = $duoquan['pages']['quan_tengxuntuhouzhui'];}
{if $quantupianlist == 1}
    {php $houzhuitu = '';}
{elseif $quantupianlist == 2}
    {php $houzhuitu = $qiniusuolietu;}
{elseif $quantupianlist == 3}
    {php $houzhuitu = $alisuolietu;}
{elseif $quantupianlist == 4}
    {php $houzhuitu = $tengxunsuolietu;}
{/if}
<!--列表重复-->
{php $erjibiao = '1_quan_fenlei';}
{if $_GET['erji'] > 0}
    {php $hoquqid = intval($_GET['erji']);}
{else}
    {php $hoquqid = intval($_GET['qid']);}
{/if}

{if $get.qid}
{php $huoquerjis = \Phpcmf\Service::M()->table($erjibiao)->where('yijiid', $hoquqid)->getAll();}
{else}
{php $huoquerjis = \Phpcmf\Service::M()->table($erjibiao)->where('cid', $id)->getAll();}
{/if}
<?php
    $erjis = [];
    foreach ($huoquerjis as $v => $data) {
    	$erjis[] = $data['id'];
		$erjis[] = 0;
    }
?>
{php $erjifenleiid = implode(',',$erjis);}
<!--列表重复-->
{if $get.tid >1 }
<!--获取接口地址的参数-->
    {php $idtid=$get.tid;}
{else}
    {if $huoquerjis}
    {php $idtid = $erjifenleiid;}
	{else}
	    {if $_GET['erji'] > 0}
	        {php $idtid=$_GET['erji'];}
		{else}
		    {php $idtid=$_GET['qid'];}
		{/if}
	{/if}
{/if}
{if dr_is_app('certify')}{php $arr=\Phpcmf\Service::C()->get_cache("app-certify");}{/if}
{php $listwenzis = \Phpcmf\Service::M()->db->table('module_form')->where('module', 'quan')->where('table', 'son')->get()->getRowArray();}
{php $listwenzi = dr_string2array($listwenzis['setting']);}

{php $getcid = $get.cid;}
{if !$getcid}
{php $getquanid = $id;}
{else}
{php $getquanid = $getcid;}
{/if}
{php $pageid = $get.page;}
{if $pageid}
{php $pagezhi = $pageid;}
{else}
{php $pagezhi = 1;}
{/if}
{if $member}
{php $heitiedata = \Phpcmf\Service::M()->table('1_quan_hei_tie')->where('uid', $member.uid)->getAll();}
{php $heiuiddata = \Phpcmf\Service::M()->table('1_quan_hei_uid')->where('uid', $member.uid)->getAll();}
<?php
    $unheitiedata = [];
    foreach ($heitiedata as $v => $data) {
    	$unheitiedata[] = $data['tid'];
    }
	$unheitie = implode(',',$unheitiedata);
	
	$unheiuiddata = [];
	foreach ($heiuiddata as $v => $data) {
		$unheiuiddata[] = $data['touid'];
	}
	$unheiuid = implode(',',$unheiuiddata);
?>
{else}
    {php $unheitie = '';$unheiuid = '';}
{/if}
{mform module=quan form=son order=inputtime shenhe=1 cid=$getquanid IN_tid=$idtid NOTIN_id=$unheitie NOTIN_uid=$unheiuid page=$pagezhi pagesize=20 return=t}
<!--图片-->
{php $imgs = dr_get_content_img($t.neirong);}

<div class="d-col-md-8-10">
	<div class="d-yuanjiao-10 d-kuan d-waigao-20 d-beijing-baise d-bianhua-10 ">
		<!--头部-->
		<div class="d-kuan d-buhuanhang  d-xia-10 ">
			<!--头部-->
			<div class="d-yuanjiao-10 d-quxian-0 d-box">
				<a href="{d_huiyuan_url($t.uid)}">
					<img src="{dr_avatar($t.uid)}" width="40" height="40" class="d-yuanjiao-50"/>
				</a>
				{if dr_is_app('certify')}
					{php $rzs = [];}
					{loop $arr $a}
						{php $rz = \Phpcmf\Service::M('data', 'certify')->info($a.code, $t.uid);}
						{if $a['value']['xianshi'] ==1 }
							{if $rz}
								{if $rz['status'] ==1}
									{php $rzs[] = 1;}
								{/if}
							{/if}
						{/if}
					{/loop}
					{if $rzs}
					<div class="d-box-xia">
						<img src="{HOME_THEME_PATH}web/img/V.png" width="15" height="15" class="d-yuanjiao-50"/>
					</div>
					{/if}
				{/if}
			</div>
			<div class="d-zuo-10 d-kuan">
				<div class="d-buhuanhang">
					<div class="d-jiacu d-quxian-0">
					    <!--/quan/{$t.id}.html-->
						<a href="{d_huiyuan_url($t.uid)}">
						{php $userweixin=\Phpcmf\Service::M()->db->table('member_oauth')->where('uid', $t.uid)->get()->getRowArray();}
						{php $user=dr_member_info($t.uid);}
							{if $userweixin.nickname}
								{$userweixin.nickname}
							{elseif $user.name}
								{$user.name}
							{else}
								{$user.username}
							{/if}
						</a>
					</div>
					{if $t.uid == $uid}
    				<div class="d-zuo-10">
    					<div class="d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">圈 主</div>
    				</div>
    				{/if}
					
						{loop $user.group $tt}
        				    {if $tt.group_icon}<div class="d-zuo-10"><img src="{$tt.group_icon}" width="60" height="15" class="d-yuanjiao-50"/></div>{/if}
        				{/loop}
					
				</div>
				<div class="d-zitiyanse-hui d-wenzi-12">
					
					{php $quanguan = d_guanlizuming($getquanid,$t.uid);}
					{if $quanguan}
						{d_guanlizuming($getquanid,$t.uid)}
					{else} 
						{php $user=dr_member_info($t.uid);}
						{loop $user.group $tt}
							{$tt.group_name}
						{/loop}
					{/if}
					
					 <i class="fa fa-eye d-zuo-10"></i><span class="d-zuo-10">{$t.hits}</span>
					<span class="d-wenzi-12 d-zitiyanse-hui" style="margin: 0px 0 0px 15px;">
						{php $ip=\Phpcmf\Service::L('ip')->address($t.inputip);}
						{if $ip == "未知地区"}
						<i class="fa fa-map-marker"></i> 中国
						{else}
						<i class="fa fa-map-marker"></i> {$ip;}
						{/if}
					</span>
				</div>
				{if dr_is_app('certify')}
				<div class="d-kuan d-quxian-0">
					{loop $arr $a}
					
						{php $rz = \Phpcmf\Service::M('data', 'certify')->info($a.code, $t.uid);}
						
						{if $a['value']['xianshi'] ==1 }
							{if $rz}
								{if $rz['status'] ==1}
									<img src="{dr_thumb($a['rztb'])}"  class="d-yuanjiao-50"/>
								{/if}
							{/if}
						{/if}
					{/loop}
				</div>
				{/if}
			</div>
			<div class="d-kuan-160">
				<div class="d-zitiyanse-hui d-zuo-10 d-div-you d-buhuanhang">
				    <a  id="guanzhu_list_{$t.uid}" data-id="{$t.uid}" class="guanzhu_list">
					    {dr_guanzhu_list($t.uid, $member.id)} 
					</a>
				</div>
			</div>
		</div>
		<!--列表内容-->
		<div class="d-kuan d-xia-10 d-quxian-0">
			<!--标题{dr_member_url('login/oauth', ['name' => $name, 'type' => 1, 'id' => $id])} {dr_son_url($t)} {dr_url('quan/son/index',['id' => $t.id])} -->
			<!--动态：{dr_son_url($t)}-->
			<a data-id="{$t.id}" {if dr_is_mobile()} href="{dr_son_url($t)}" {else} {if $quanliulan == 1} href="{dr_son_url($t)}" {else} data-toggle="modal" data-target="#myModalssss" class="tantie" {/if}{/if}> 
				{if $t.spspkg != 1}
				<div class="d-jiacu d-wenzi-16  {if $quankongge==1}d-zuonei-50{/if}">
				    {if $t.jinghua == 1}<span class="d-wenzi-12 d-biaoqian-30 d-yuanjiao-5" >精华</span> {/if}
				    {if $t.qiuzukaiguan == 1} <span style="color: #009c00;">[ 求租 ]</span> {/if}
					{if $t.chuzukaiguan == 1}<span style="color: #ff7171;">[ 出租 ]</span> {/if}
					<!--求职-->
					{if $t.zpkg == 1}
						<span style="color: #ff7171;">[ 招聘 ]</span>
					{/if}
					<!--求职-->
					{if $t.qzkg == 1}
					<span style="color: #9d3eb7;">[ 求职 ]</span>
					{/if}
				    {$t.title}
				</div>
				{/if}
				<!--简介-->
				<div class="{if $quankongge==1}d-qiankong-50{/if} d-chaochu-6 d-wenzi-14 d-list d-zitiyanse-hui d-huanhang {if !$t.title} d-zitiyanse-hei d-wenzi-16{/if}">
				    {if $listwenzi['is_listwenzi'] == 1}
					    {if $t.caijizhanshi == '1'}
    			        	{template "index-list-caiji.html"}
						{elseif $t.spspkg == 1}
    			        {else}
    			        	{dr_strcut(dr_clearhtml($t.neirong), 70)}
    			        {/if}
					{else}
						{if $t.caijizhanshi == '1'}
			    		    {template "index-list-caiji.html"}
						{elseif $t.spspkg == 1}
    			    	{else}
    			    		{dr_get_content_quimgs($t.neirong)}
    			    	{/if}
					{/if}
				</div>
			</a>
			<div class="d-shang-10 d-kuan"></div>

			{if $t.caijizhanshi != '1'}
    			{if $listwenzi['is_listtupian'] == 1}
    			<a data-id="{$t.id}" {if dr_is_mobile()} href="{dr_son_url($t)}" {else} {if $quanliulan == 1} href="{dr_son_url($t)}" {else} data-toggle="modal" data-target="#myModalssss" class="tantie" {/if}{/if}> 
    				{if !$t.thumb}
					    {if $t.spspkg == 1}
    					{elseif $quantupianlist == 0}
    						{if $quangetu == '1'}
    							{template "index-tupian-list-san.html"}
    						{else}
    							{template "index-tupian-list.html"}
    						{/if}
							
    					{elseif $quantupianlist == 2 || $quantupianlist == 3 || $quantupianlist == 4}
    						{if $quangetu == '1'}
    							{template "index-tupian-url-yun-list-san.html"}
    						{else}
    							{template "index-tupian-url-yun-list.html"}
    						{/if}
    					
    					{/if}
					{elseif $t.spspkg == 1}
    				{else}
    			    	{if $quantupianlist == 0}
    			    		{if $quangetu == '1'}
    			    			{template "index-tupian-list-san.html"}
    			    		{else}
    			    			{template "index-tupian-list.html"}
    			    		{/if}
    			    	{elseif $quantupianlist == 2 || $quantupianlist == 3 || $quantupianlist == 4}
    			    		{if $quangetu == '1'}
    			    			{template "index-tupian-url-yun-list-san.html"}
    			    		{else}
    			    			{template "index-tupian-url-yun-list.html"}
    			    		{/if}
    			    	
    			    	{/if}
    				{/if}
    			</a>
    			<!--script>
    			var viewer = new Viewer(document.getElementById('d-tupian-{$t.id}'), {
    			  	//url: 'data-kujue',
    				toolbar: false,//关闭工具栏
    				title: false,//关闭标题栏
    				backdrop: true, //点击遮罩层不关闭
    				rotatable: false, //图片是否可旋转
    				scalable: false, //图片是否可翻转
    				tooltip: false, //显示缩放百分比
    			  });
    			</script-->
    		    {else}
    		
    			<a data-id="{$t.id}" {if dr_is_mobile()} href="{dr_son_url($t)}" {else} {if $quanliulan == 1} href="{dr_son_url($t)}" {else} data-toggle="modal" data-target="#myModalssss" class="tantie" {/if}{/if}> 
    			    {if !$t.thumb}
    			    	{if $quantupianlist == 0}
    			    		{if $quangetu == '1'}
    			    			{template "index-tupian-list-san.html"}
    			    		{else}
    			    			{template "index-tupian-list.html"}
    			    		{/if}
    			    	{elseif $quantupianlist == 2 || $quantupianlist == 3 || $quantupianlist == 4}
    			    		{if $quangetu == '1'}
    			    			{template "index-tupian-url-yun-list-san.html"}
    			    		{else}
    			    			{template "index-tupian-url-yun-list.html"}
    			    		{/if}
    			    	
    			    	{/if}
    			    {else}
    			    	{if $quantupianlist == 0}
    			    		{if $quangetu == '1'}
    			    			{template "index-tupian-list-san.html"}
    			    		{else}
    			    			{template "index-tupian-list.html"}
    			    		{/if}
    			    	{elseif $quantupianlist == 2 || $quantupianlist == 3 || $quantupianlist == 4}
    			    		{if $quangetu == '1'}
    			    			{template "index-tupian-url-yun-list-san.html"}
    			    		{else}
    			    			{template "index-tupian-url-yun-list.html"}
    			    		{/if}
    			    	
    			    	{/if}
    			    {/if}
    			</a>
    			{/if}
    		{else}
    			    
			{/if}
		</div>
		<!--视频-->
		{if $t.spkg == 1}
			{template "show-list-shipin.html"}
		{/if}
		<!--比赛-->
		{if $t.bisaikaiguan == 1}
			{template "show-list-bisai.html"}
		{/if}
		<!--mp3-->
		{if $t.mpsankaiguan == 1}
			{template "show-list-mp3.html"}
		{/if}
		<!--投票-->
		{if $t.tpkg == 1}
			{template "show-list-toupiao.html"}
		{/if}
		<!--问答-->
		{if $t.wendakaiguan == 1}
			{template "index-list-wenda.html"}
		{/if}
		<!--招聘-->
		{if $t.zpkg == 1}
			{template "show-list-zhaopin.html"}
		{/if}
		<!--求职-->
		{if $t.qzkg == 1}
			{template "show-list-qiuzhi.html"}
		{/if}
		<!--求租-->
		{if $t.qiuzukaiguan == 1}
			{template "index-list-qiuzu.html"}
		{/if}
		<!--出租-->
		{if $t.chuzukaiguan == 1}
			{template "index-list-chuzu.html"}
		{/if}
		<!--PK-->
		{if $t.pkkaiguan == 1}
			{template "show-list-pk.html"}
		{/if}
		<!--活动报名-->
		{if $t.hdzt == 1}
			{template "show-list-huodong.html"}
		{/if}
		<!--阅读-->
		{if $t.ffzt == 1}
			{if $t.fufeixianzhi == 1}
				<!--统一免费-->
				{template "show-list-yuedu-mianfei.html"}
			{elseif $t.fufeixianzhi == 2}
				<!--会员免费-->
				{template "show-list-yuedu-huiyuan.html"}
			{elseif $t.fufeixianzhi == 3}
				<!--统一付费-->
				{template "show-list-yuedu.html"}
			{elseif $t.fufeixianzhi == 4}
				<!--积分-->
				{template "show-list-yuedu-jifen.html"}
			{elseif $t.fufeixianzhi == 5}
				<!--点赞-->
				{template "show-list-yuedu-dianzan.html"}
			{elseif $t.fufeixianzhi == 6}
				<!--评论-->
				{template "show-list-yuedu-pinglun.html"}
			{/if}
		{/if}
		<!--进度-->
		{if $t.jindu == 1}
		{template "show-list-jindu.html"}
		{/if}
		<!--进度-->
		{if $t.bug == 1}
		{template "show-list-bug.html"}
		{/if}
		<!--九格图-->
		{if $t.jgtkg == 1}
			{if $t.yuedumoshi == 1}
				{template "show-list-jiugetu-mianfei.html"}
			{elseif $t.yuedumoshi == 2}
				{template "show-list-jiugetu-fufei.html"}
			{elseif $t.yuedumoshi == 3}
				{template "show-list-jiugetu-jifen.html"}
			{/if}
		{/if}
		<!--下载-->
		{if $t.xzzt == 1}
			{if $t.xzxz == 1}
				<!--统一免费-->
				{template "show-list-xiazai-mianfei.html"}
			{elseif $t.xzxz == 2}
				<!--会员免费-->
				{template "show-list-huiyuanmianfei.html"}
			{elseif $t.xzxz == 3}
				<!--统一付费-->
				{template "show-list-xiazai.html"}
			{elseif $t.xzxz == 4}
				<!--积分-->
				{template "show-list-xiazai-jifen.html"}
			{elseif $t.xzxz == 5}
				<!--点赞-->
				{template "show-list-xiazai-dianzan.html"}
			{elseif $t.xzxz == 6}
				<!--评论-->
				{template "show-list-xiazai-pinglun.html"}
			{/if}
		{/if}
		<!--商品-->
		{if $t.spspkg == 1}
			{template "index-list-shangpin.html"}
		{/if}
		<!--创业金-->
		{if dr_is_app('chuangyejin')}
			{if $t.fczt == 1}
				{template "show-list-chuangyejin.html"}
			{/if}
		{/if}
		<!--列表评论-->
		<div class="d-kuan">
		    <div class="d-kuan d-wenzi-touming-90 d-buhuanhang d-quxian-0 d-xia-10" id="zanlist_list">
    			<div id="zanlist_list_{$t.id}" data-id="{$tt.uid}">
    				{table table=1_quan_form_son_zan cid=$t.id page=1 pagesize=10 return=tt}
                	    <img src="{dr_avatar($tt.uid)}" width="25" height="25" class="d-touxiang-10" id="gerenzan_{$t.id}_{$tt.uid}" data-id="{$tt.uid}"/>
                	{/table}
    			</div>
    		</div>
			<div class="d-kuan d-xia-5">{d_huati_zu($t.neirong)}</div>
			<div class="row ">
				<div class="d-hanggao-24 col-xs-6 d-zitiyanse-hui d-quxian-0 d-chaochu">
					
					
					
					{if $duoquan == '1'}
					    {if $_GET['erji'] > 0}
					    {php $guishudaohang = \Phpcmf\Service::M()->db->table($erjibiao)->where('id', $_GET['erji'])->get()->getRowArray();}
						{else}
						{php $guishudaohang = \Phpcmf\Service::M()->db->table($erjibiao)->where('id', $t['tid'])->get()->getRowArray();}
						{/if}
						<a href="{dr_url(MOD_DIR.'/show/index',['id' => $id,'qid' => $guishudaohang['yijiid'],'erji' => $t.tid])}">
						<span class="d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui">
							<i class="fa fa-bars"></i> {$guishudaohang['name']}</span>
						</a>
					{else}
						{php $guishudaohang = \Phpcmf\Service::M()->db->table($erjibiao)->where('id', $t['tid'])->get()->getRowArray();}
					    {if $guishudaohang['yijiid'] == 0}
					    	<a href="{dr_url(MOD_DIR.'/show/index',['id' => $id,'qid' => $t.tid])}">
					    	<span class="d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui">
					    		<i class="fa fa-bars"></i> {$guishudaohang['name']}</span>
					    	</a>
					    {else}
					    	<a href="{dr_url(MOD_DIR.'/show/index',['id' => $id,'qid' => $guishudaohang['yijiid'],'erji' => $t.tid])}">
					    	<span class="d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui">
					    		<i class="fa fa-bars"></i> {$guishudaohang['name']}</span>
					    	</a>
					    {/if}
				    {/if}
					{if $price > 0}
						{if $t.vip == 0}
							<!--span class="d-zuo-4 d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hongse">
								<i class="fa fa-unlock"></i> 免 费 
							</span-->
						{/if}
					{/if}
					<span class="d-zuo-4 d-chaochu">{dr_fdate($t._inputtime)}</span>
				</div>
				<div class="col-xs-6 ">
					<div class="row ">
						<div class="col-xs-4 ">
							<div class="d-quxian-0">
								<a href="{dr_son_url($t)}">
									<div class="d-zitiyanse-hui d-div-you d-buhuanhang">
										<img src="{HOME_THEME_PATH}quan/img/pinglun.svg" width="24" height="24" class="d-yuanjiao-50 d-div-zuo"/>
										<div class="d-zitiyanse-hui d-hanggao-24 d-zuo-10 d-div-yuo">{intval($t.comments)}</div>
									</div>
								</a>
							</div>
						</div>
						<div class="col-xs-4 ">
							<div class=" ">
								<div class="d-zitiyanse-hui d-zuo-10 d-div-you d-buhuanhang">
								    <a  id="tag_zan_list_{$t.id}" data-id="{$t.id}" class="tag_zan_list">
									    {dr_quan_tag_zan_list($t.id, $t.zan)} 
									</a>
									<div class="d-zitiyanse-hui d-hanggao-24 d-zuo-10 d-div-yuo" {if $member} id="module_zan_list_{$t.id}"{/if}>{intval($t.zan)}</div>
								</div>
							</div>
						</div>
						<div class="col-xs-4 d-wenzi-you">
							<div class="dropup col-xs-2 pull-right d-shang-5">
							  <i class="fa fa-send-o d-zitiyanse-hui d-wenzi-16"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
							  </i>
							  <ul class="dropdown-menu pull-right" >
							    
							    <li><a id="fuzhi_list_{$t.id}" data-id="{$t.id}" data-clipboard-text="{$t.title}{dr_strcut(dr_clearhtml($t.neirong), 70)}{dr_url('quan/son/index',['id' => $t.id])}" data-url="{dr_son_url($t)}" class="fuzhi_list"><i class="fa fa-clone"></i> 复制链接</a></li>
							    <!--li role="separator" class="divider"></li-->
								{if $quanliulan == 1} 
									<li><a data-id="{$t.id}" data-toggle="modal" data-target="#myModalssss" class="tantie"><i class="fa fa-send-o d-zitiyanse-hui d-wenzi-16"></i> 弹出链接</a></li>
								{else}
							    	<li><a href="{dr_son_url($t)}"><i class="fa fa-send-o d-zitiyanse-hui d-wenzi-16"></i> 直达链接</a></li>
								{/if}
							  </ul>
							</div>
							
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
{/mform}
<script>
	$(".fuzhi_list").click(function() {
		var id = $(this).data("id");
	  //var content = $("#fuzhis_list_"+id).text();
	  //引入实例化clipboard.js, 注意这里不要用Clipboard而是ClipboardJS
	  var clipboard = new ClipboardJS("#fuzhi_list_"+id);
	  //如果成功复制的话
	  clipboard.on('success', function(e) {
		  console.info('Text:', e.text);
	          //alert("复制成功");
			  layer.msg('复制成功',{time:1000});
	      });
	  //如果复制失败
	  clipboard.on('error', function(e) {
	          alert("复制失败");
	      });
	});
</script>